package org.zhaolei.service;

import org.zhaolei.model.CouponRecordMessage;
import org.zhaolei.request.LockCouponRecordRequest;
import org.zhaolei.util.JsonData;
import org.zhaolei.vo.CouponRecordVO;

import java.util.Map;

public interface CouponRecordService {
    /**
     * 分页查询领券记录
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> page(int page, int size);

    CouponRecordVO getCouponRecordDetail(long couponRecordId);

    JsonData lockCouponRecords(LockCouponRecordRequest lockCouponRecordRequest);

    boolean releaseCouponRecord(CouponRecordMessage couponRecordMessage);
}
